package com.hust.service;


import com.hust.dao.CommodityDao;
import com.hust.dao.PriceDao;
import com.hust.domain.Commodity;
import com.hust.domain.Price;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

@Service
public class TestService {

    @Autowired
    PriceDao PriceDao;

    public void  Test(){
        Price c=new Price();
        c.setcId((long)(1));
        c.setpId(2);

        PriceDao.insert(c);
    }
}
